package ${voPackage};

import com.odianyun.project.support.base.model.BaseVO;
<#list po.getImportList(po.exportFields) as import>
import ${import};
</#list>

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
<#list po.exportFields as field>
<#if field.dataSourceType?? && field.dataSourceType == "code">
import com.odianyun.project.support.cache.DictUtils;
<#break>
</#if>
</#list>

/**
 * ${po.title}
 * @CreateDate ${date}
 */
 @ApiModel("${po.title}ExportVO")
public class ${po.name}ExportVO extends BaseVO {
    <#list po.exportFields as field>
    <#if !field.common>
    /**
     * ${field.title}
     */
    @ApiModelProperty("${field.title}")
    private ${field.typeName} ${field.relName};
    </#if>
    </#list>

    <#list po.exportFields as field>
    <#if !field.common>
    public void set${field.relName?cap_first}(${field.typeName} ${field.relName}) {
        this.${field.relName} = ${field.relName};
    }
    public ${field.typeName} get${field.relName?cap_first}() {
        return ${field.relName};
    }
    </#if>
    </#list>

	  /*---------------------------------- extra info --------------------------------*/
	  <#list po.exportFields as field>
    <#if !field.common>
    <#if field.dataSourceType?? && field.dataSourceType == "code">
    public String get${field.relName?cap_first}Str() {
        return DictUtils.getName("${field.dataSourceKey}", ${field.relName});
    }
    </#if>
    </#if>
	  </#list>
}